<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
/* --------------------------------------------------------------------------------------//
	BigDaddy Site Display Processing
	Created: Duleepa Wijayawardhana, March 12, 2004
	Copyright 2004 BioWare Corp.
//--------------------------------------------------------------------------------------*/

//include any function/class files as required by the page before display (such as section functions etc)
if (is_array($pageParams["functions"]))
{
	for ($i=0; $i<count($pageParams["functions"]); $i++)
	{
		include($pageParams["functions"][$i]);
	}
}


require_once(ACCESS_CHECK);

//--------------------------------------------------------------------------------------//

//Do we now want to display the theme and include the display includes
if ($pageParams["noDisplay"]=="")
{
	require(THEME_INC);
}
elseif ($pageParams["include"]!="")
{
	include($pageParams["include"]);
}

echo trim(ob_get_clean());

?>
